package com.example.tools.common.login;

import com.example.tools.common.base.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2019-09-15.
 */
@Repository
public interface UserRepository extends BaseRepository<User,Integer> {

    /**
     * 查询用户名为username,密码为password的用
     * @param loginName
     * @param password
     * @return
     */
    List<User> findUserByLoginNameAndPassword(String loginName , String password );
}
